<%@ page import="java.util.List" %>
<%@ page import="net.sf.json.JSONArray" %><%--
  Created by IntelliJ IDEA.
  User: JIAHANG
  Date: 2023/1/30
  Time: 16:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购物页</title>
    <link rel="stylesheet" href="/untitled01_war_exploded/css/shopp.css" />
    <script type="text/javascript" src="/untitled01_war_exploded/js/shopp.js"></script>

</head>
<body>

<%
    int userid = (int) request.getAttribute("userId");

%>
<script type="text/javascript">
    const userid = "<%=userid%>";
    var val= [];

    //2、使用这段代码即可实现

    window.onload = test();

         　

</script>

<table id="cartTable1">
    <thead>
    <tr>
        <th><label><input class="check-all check" type="checkbox"/>&nbsp;全选</label></th>
        <th>商品</th>
        <th>单价</th>
        <th>数量</th>
        <th>小计</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody id="cartTable">
<%--    <tr>--%>
<%--        <td class="checkbox"><input class="check-one check" type="checkbox" /></td>--%>
<%--        <td class="goods"><img  src="" alt="" /><span></span></td>--%>
<%--        <td class="price"></td>--%>
<%--                <td class="count">--%>
<%--                    <span class="reduce">-</span>--%>
<%--                    <input class="count-input" type="text" value="" />--%>
<%--                    <span class="add">+</span></td>--%>
<%--                <td class="subtotal"></td>--%>
<%--        <td class="operation"><span class="delete">删除</span></td>--%>
<%--    </tr>--%>
    </tbody>
<%--    <tbody>--%>
<%--    --%>
<%--    <tr>--%>
<%--        <td class="checkbox"><input class="check-one check" type="checkbox" /></td>--%>
<%--        <td class="goods"><img id="src2" src="/untitled01_war_exploded/images/1-1.jpg" alt="" /><span>Casio/卡西欧 EX-TR350</span></td>--%>
<%--        <td class="price" id="src1">5999.88</td>--%>
<%--        <td class="count">--%>
<%--            <span class="reduce"></span>--%>
<%--            <input class="count-input" type="text" value="1" />--%>
<%--            <span class="add">+</span></td>--%>
<%--        <td class="subtotal">5999.88</td>--%>
<%--        <td class="operation"><span class="delete">删除</span></td>--%>
<%--    </tr>--%>
<%--    <tr>--%>
<%--        <td class="checkbox"><input class="check-one check" type="checkbox" /></td>--%>
<%--        <td class="goods"><img src="/untitled01_war_exploded/images/1-2.jpg" alt="" /><span>Canon/佳能 PowerShot SX50 HS</span></td>--%>
<%--        <td class="price">3888.50</td>--%>
<%--        <td class="count"><span class="reduce"></span><input class="count-input" type="text" value="1" /><span class="add">+</span></td>--%>
<%--        <td class="subtotal">3888.50</td>--%>
<%--        <td class="operation"><span class="delete">删除</span></td>--%>
<%--    </tr>--%>
<%--    <tr>--%>
<%--        <td class="checkbox"><input class="check-one check" type="checkbox" /></td>--%>
<%--        <td class="goods"><img src="/untitled01_war_exploded/images/1-3.jpg" alt="" /><span>Sony/索尼 DSC-WX300</span></td>--%>
<%--        <td class="price">1428.50</td>--%>
<%--        <td class="count"><span class="reduce"></span><input class="count-input" type="text" value="1" /><span class="add">+</span></td>--%>
<%--        <td class="subtotal">1428.50</td>--%>
<%--        <td class="operation"><span class="delete">删除</span></td>--%>
<%--    </tr>--%>
<%--    <tr>--%>
<%--        <td class="checkbox"><input class="check-one check" type="checkbox" /></td>--%>
<%--        <td class="goods"><img src="/untitled01_war_exploded/images/1-4.jpg" alt="" /><span>Fujifilm/富士 instax mini 25</span></td>--%>
<%--        <td class="price">640.60</td>--%>
<%--        <td class="count"><span class="reduce"></span><input class="count-input" type="text" value="1" /><span class="add">+</span></td>--%>
<%--        <td class="subtotal">640.60</td>--%>
<%--        <td class="operation"><span class="delete">删除</span></td>--%>
<%--    </tr>--%>
<%--    </tbody>--%>
</table>

<div class="foot" id="foot">
    <label class="fl select-all"><input type="checkbox" class="check-all check"/>&nbsp;全选</label>
    <a class="fl delete" id="deleteAll" href="javascript:;">全部删除</a>
<%--    <div class="fr closing" onclick=""><a class="fr closing" id="#" href="/untitled01_war_exploded/JSP/Product.jsp">返回</a></div>--%>
    <div class="fr closing" onclick="window.location.href='Product.jsp';">返回</div>
    <div class="fr closing">结 算</div>

    <div class="fr total">合计：￥<span id="priceTotal">0.00</span></div>
    <div class="fr selected" id="selected">已选商品
        <span id="selectedTotal">0</span>件
        <span class="arrow up">🔍</span>
        <span class="arrow down">︾</span>
    </div>
    <div class="selected-view">
        <div id="selectedViewList" class="clearfix">
            <!--<div><img src="images/1.jpg"><span>取消选择</span></div>-->
        </div>
        <span class="arrow">◆<span>◆</span></span>
    </div>
</div>
</body>

</html>
